package com.test.VT.Conf;

/**
 * 异步任务
 * @author caoqianfan
 * @date 2024/9/27 15:11
 */
//@Configuration
//public class AsyncTaskConfiguration implements AsyncConfigurer {
//
//    @Override
//    public Executor getAsyncExecutor() {
//        return new TaskExecutorAdapter(Executors.newThreadPerTaskExecutor(Thread.ofVirtual().name("virtual-async-", 1).factory()));
//    }
//
//    @Bean("virtualThreadExecutor")
//    public Executor virtualThreadExecutor() {
//        return Executors.newVirtualThreadPerTaskExecutor();
//    }
//}